package com.tboss.template.common.type;

import java.util.HashMap;

public enum WidgetType {
	EnSubffix("subffix", "OSS")
	;
	
	private String key;
	private String value;
	public static final HashMap<String, WidgetType> lookup = new HashMap<String, WidgetType>();
	static{
		for(WidgetType o : WidgetType.values()){
			lookup.put(o.getKey(), o);
		}
	}
	private WidgetType(String key, String value){
		this.key = key;
		this.value = value;
	}
	
	public String getKey(){ return this.key; }
	public String getValue(){ return this.value; }
	public static WidgetType get(String key){
		return lookup.get(key);
	}
	
}
